//
//  HYImageCollectionCell.m
//  XPlayer
//
//  Created by 张水 on 2023/9/20.
//

#import "HYImageCollectionCell.h"

@implementation HYImageCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        _scrollView = [[HYPreviewImageScrollView alloc]initWithFrame:self.bounds];
        _scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
        [self addSubview:_scrollView];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _scrollView.zoomScale = 1.0;
    _scrollView.contentSize = _scrollView.bounds.size;
}

@end
